import itertools

lengths = [1, 2]
widths = [3, 4]
heights = [5, 6]
cubes = list(itertools.product(lengths, widths, heights))
print(cubes)
